{foreach $date as $key => $v}
<li class="{if $v@index%2 == 0}col2{/if} {if $v@index==0}active{/if}"><a href="#{$v}">{$v}</a></li>
{/foreach}